class GameMeun {
    constructor(width, height) {
        this.width = width;
        this.height = height;

        //初始化游戏界面
        this.initMap();
        
     
    }
    initMap(){
        this.gamemeun=new Image();
        this.gamemeun.src='./img/game_menu.jpg'
    }
    
    run(paint){
        this.onDraw(paint);
    }
    onDraw(paint){
        paint.drawImage(this.gamemeun,0,0,this.width,this.height)
    }
    onmousedown(x,y){
        if(
            x>168&&x<312&&y>376&&y<424
        ){
           this.setGameState();   
        }
        // console.log(x,y)

    }
}